package ooo.reindeer.data.option;

import io.netty.buffer.ByteBuf;

public interface ICoder<V, T> {
    V convert(Object value);

    V deCode(ByteBuf buf, Endian endian);

    V deCode(ByteBuf buf, T info, int length, Class clazz);

    void enCode(ByteBuf buf, V value, T info, Class clazz);

    void enCode(ByteBuf buf, V value, Endian endian);
}
